﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExpenseSystem.Model;
using ExpenseSystem.Lor;
using ExpenseSystem.Common;
using ExpenseSystem.DataUpdater;
using ExpenseSystem.Fether;
using ExpenseSystem.Core.DataAddOn;
using System.Web;
namespace ExpenseSystem.Core.BonusModules
{
    public class CustomerOtherBaseManager : CustomerOtherManager
    {
        public override bool Delete(CustomerOtherModel other, out string message)
        {
            CustomerOtherFetcher fetcher = new CustomerOtherFetcher();
            return updater.Remove(other, tran, fetcher, out message);
        }

        public override bool DeleteById(long[] otherIds, out string message)
        {
            CustomerOtherFetcher fetcher = new CustomerOtherFetcher();
            return updater.RemoveById(profile.SiteId, otherIds, tran, fetcher, out message);
        }

        public override bool Save(CustomerOtherModel other, out string message, params IAddable<CustomerOtherModel>[] addables)
        {
            CustomerOtherFetcher fetcher = new CustomerOtherFetcher();
            return updater.Save( other, tran, fetcher, out message);
        }
    }
}
